package id.net.iconpln.bb.server.service.impl;

import id.net.iconpln.bb.server.dao.LogPageDao;
import id.net.iconpln.bb.server.dao.MasterDao;
import id.net.iconpln.bb.server.model.persistence.LogPage;
import id.net.iconpln.bb.server.service.MasterService;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;



@Service("masterService")
@Transactional(readOnly=true)
public class MasterServiceImpl implements MasterService {
	
	@Autowired private LogPageDao logpageDao; 
	@Autowired private MasterDao masterDao; 
    
	@Override
	public List<LogPage> getLogPageAll() {
		// TODO Auto-generated method stub
    	System.out.println("page slide dao :"+logpageDao);
		return logpageDao.getLogPageAll();
	}
	@Override
	public List<Map> getMaster(String kode, Map map) {
		// TODO Auto-generated method stub
		return masterDao.getMaster(kode, map);
	}
	@Override
	public List<Map> setRelationMaster(String kode, Map map) {
		// TODO Auto-generated method stub
		return masterDao.setRelationMaster(kode, map);
	}
	@Override
	public List<Map> crudMaster(String kode, Map map) {
		// TODO Auto-generated method stub
		return masterDao.crudMaster(kode, map);
	}
		
}
